package com.lj.ljminsu.houseDetails.dao;

import com.lj.ljminsu.houseDetails.bean.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HouseDetailDao {
    //查询当前id房屋的所有信息
    //当前房源一般有xx个(tj_house_desc.room_no),同时查询日期,价格,房间数表(house_rooms_num),有被预定的房间,就把可用房间数替换掉.
    //1当前房间多少钱每晚(tj_house_price),
    HouseBase queryHouseRoomByid(@Param("houseId") Integer houseId);
    // 2,折扣优惠方案(tj_price_reduce),
    List<HouseReduceSku> queryReduceListById(@Param("houseId") Integer houseId);
    // 3,某些日期价格房数
    List<HouseStatus> queryHouseStatusById(@Param("houseId") Integer houseId,@Param("nowDay") String nowDay);

    //查询房屋信息
    HouseBaseInfo queryHouseBaseInfoById(@Param("houseId") Integer houseId);
    //房屋描述
    HouseRoomDesc queryRoomDescById(@Param("houseId") Integer houseId);
    //房屋服务
    List<HouseService> queryHouseServiceListById(List<Object> serviceIds);
    //房屋图片
    List<Imgs> queryHouseImgListById(@Param("houseId") Integer houseId);
    //房子某天抢购前的房数
    Integer queryHouseNum(@Param("houseId") Integer houseId,@Param("start") String start);

}
